﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using OAclient.Models;
using System.IO;

namespace OAclient.Controllers
{
    [VaildateLogin]
    public class FileController : Controller
    {
        //
        // GET: /File/

        public ActionResult FileTree()
        {
            return PartialView();
        }

        #region 方法

        public string DoFileAdd(string path)
        {
            //DirectoryInfo dir = new DirectoryInfo(path);
            //FileInfo fi = new FileInfo(path);
            Directory.CreateDirectory(path);
            return "操作成功";
        }

        public string DoFileDelete(string filefullname)
        {
            return "";
        }

        public string DoFileUpload()
        {
            return "";
        }

        #endregion

    }
}
